
#include <iostream>

#include "Config.h"
#include "Top.h"
#include <cstdlib>
#include <sys/signal.h>

Top* top;

void signal_handler_SIGINT (int status)
{
  delete top;
  exit(0);
}

int main()
{
  srand ( time(NULL) );

  top = new Top(CUR_CONTROLLER);
  signal(SIGINT,signal_handler_SIGINT);

  top->run();

	return 0;
}
